package com.yswy.domain.vo.gld.addOrUpate;

import com.yswy.domain.vo.gld.addOrUpate.base.BaseReqVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author 19401
 * @date 2022/6/6 17:09
 **/
@Data
public class TgEventAddOrUpdate extends BaseReqVO {
    @NotNull(message = "ID不能为空", groups = {UPDATE.class , DElECT.class})
    private Long id;
    @ApiModelProperty("备注")
    private String remarks;

    @ApiModelProperty("编号")
    @NotEmpty(message = "编号不能为空", groups = {CREATE.class})
    private String identifier;

    @ApiModelProperty("投放（上架）平台  0 巨量  1 快手 ")
    @NotEmpty(message = "投放（上架）不能为空", groups = {CREATE.class})
    private String tfPlatform;

    @ApiModelProperty("扣量配置")
    @NotEmpty(message = "扣量配置不能为空", groups = {CREATE.class ,UPDATE.class })
    private List<TgEventChildAddOrUpdate> tgEventChildAddOrUpdates;
}
